package com.dianping.cat.configuration.server.entity;

import com.dianping.cat.configuration.server.BaseEntity;
import com.dianping.cat.configuration.server.IVisitor;





public class Property
  extends BaseEntity<Property>
{
  private String m_name;
  private String m_value;
  
  public Property() {}
  
/* 18 */   public Property(String name) { this.m_name = name; }




/* 23 */   public void accept(IVisitor visitor) { visitor.visitProperty(this); }


  
  public boolean equals(Object obj) {
/* 28 */     if (obj instanceof Property) {
/* 29 */       Property _o = (Property)obj;

/* 31 */       if (!equals(getName(), _o.getName())) {
/* 32 */         return false;
      }
      
/* 35 */       return true;
    }
    
/* 38 */     return false;
  }

  
/* 42 */   public String getName() { return this.m_name; }



/* 46 */   public String getValue() { return this.m_value; }
/*    */


  
  public void mergeAttributes(Property other) {
/* 60 */     assertAttributeEquals(other, "property", "name", this.m_name, other.getName());

/* 62 */     if (other.getValue() != null) {
/* 63 */       this.m_value = other.getValue();
    }
  }
  
  public Property setName(String name) {
/* 68 */     this.m_name = name;
/* 69 */     return this;
  }
  
  public Property setValue(String value) {
/* 73 */     this.m_value = value;
/* 74 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-core-3.0.0.jar!/com/dianping/cat/configuration/server/entity/Property.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */